cmake_minimum_required(VERSION 3.20)

project(calibration)

find_package(OpenCV REQUIRED)

set(Eigen3_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/thirdparty/eigen-3.4.0)

include_directories(
    ${OpenCV_INCLUDE_DIRS}
    ${Eigen3_INCLUDE_DIRS}
    ${CMAKE_SOURCE_DIR}/include
    ${CMAKE_SOURCE_DIR}/src/eyetohand
)

file(GLOB SRC_FILES ./monocular/*.cpp)
# file(GLOB SRC_FILES ./eyetohand/main.cpp ./eyetohand/HandEyeCalibration.cpp)
# file(GLOB SRC_FILES ./eyetohand/calib.cpp)
# message(STATUS ${CMAKE_CURRENT_SOURCE_DIR})

add_executable(
    ${PROJECT_NAME}
    ${SRC_FILES}
)

target_link_libraries(
    ${PROJECT_NAME}
    # PRIVATE
    ${OpenCV_LIBS}
)